<?php exit;

$GLOBALS['attach_imgs']=array('images'=>$imagelist,'imgpath'=> $conf['upload_url'].'attach/','message_fmt'=>&$post['message_fmt']);
if(count($GLOBALS['attach_imgs']['images'])==0)
{
    foreach($filelist as &$g_f)
    {
        if(!empty($g_f) && $g_f['filetype']=='image' && $g_f['width']>100)
        {
            $GLOBALS['attach_imgs']['images'][]=&$g_f;
        }
    }
}